home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-06-12 | 1.2 KB | 42 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="2"
- "COUNT"="1"
- "UIPATH"="Appearance\Start menu\Options"
- "NAME"="Menu Reaction Speed"
- "VERSION"="1.2"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Delay (ms)"
- "DESCRIPTION 1"="Use this plug-in to change the reaction-time of the Start menu when you select an item."
- "DESCRIPTION 2"="The default value for this is 250 ms, the longest time is 65534 ms and the shortest possible value is 1 ms."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
-
-
- Sub Plugin_Initialize
- i=RegReadValue("HKCU\Control Panel\Desktop\MenuShowDelay")
- SetUIElement 1,i
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- i=GetUIElement(1)
- if IsNumeric(i) then
- if i<1 or i>65534 then
- Call DataInvalid("The value you have entered is not valid.")
- end if
- else
- Call DataInvalid("Please enter a valid numeric value.")
- end if
-
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
- Call RegWriteValue("HKCU\Control Panel\Desktop\MenuShowDelay",i,1)
-
- Restart
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-